import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/plugins/plugins_vant.js'
import './styles/index.less'
import '@/assets/fonts/iconfont.css'
import { request } from './utils/request'
import VueSocketIO from 'vue-socket.io'
import SocketIOClt from 'socket.io-client'
import 'amfe-flexible'
import 'leaflet/dist/leaflet.css'
// import MobileOrg from 'mobile-org'
// import 'mobile-org/mobile-org.css'

// const wsURL = 'wss://49.232.183.3:22170'
const wsURL = window.location.host
const sioClt = SocketIOClt(wsURL, {
  autoConnect: false
})

Vue.use(
  new VueSocketIO({
    debug: false,
    connection: sioClt,
    vuex: {}
  })
)
// Vue.use(MobileOrg)
Vue.prototype.$http = request

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
